package org.fzu.ercha.wuta.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.View;
import android.view.ViewGroup;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ercha on 2017/1/26.
 */

public class WutaPagerAdapter extends FragmentPagerAdapter {
    private List<Fragment> mFragmentList = null;

    public WutaPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragmentList){
        super(fragmentManager);
        mFragmentList = fragmentList;
    }

    @Override
    public Fragment getItem(int position){
        return mFragmentList.get(position);
    }

    @Override
    public int getCount(){
        return mFragmentList.size();
    }
//
//    @Override
//    public Object instantiateItem(ViewGroup container, int position) {
//
//    }
//
//    @Override
//    public void destroyItem(ViewGroup container, int position, Object object){
//    }

//    @Override
//    public boolean isViewFromObject(View view, Object object){
//
//    }
}
